const WorkModel = require("../../models/WorkModel")

const WorkService ={
    
    
    getList:async({_id})=>{//{}是查询所有记录，【】是要的字段
        return _id?WorkModel.find({_id},[]): 
        WorkModel.find({},[])
    }, 
    
}

module.exports =WorkService